package com.yx.learn.dao;

import java.util.List;

import com.yx.learn.domain.Department;

public interface DepartmentDao {

	// 增加机构
	public void save(Department department) throws Exception;	
	
	// 根据ID号删除机构
	public void delete(Department department) throws Exception;

	// 修改机构
	public void update(Department department) throws Exception;

	// 根据ID号查询数据
	public Department findById(int id) throws Exception;

	// 查找孩子
	public List<Department> getChildren(int id) throws Exception;
		
	//查找所有部门
	public List<Department> findAll() throws Exception;

}
